const {
  selectPointsMallInfo,
  selectPointsMallInfoById
} = require('../service/pointsMall');

/* 获取积分兑换商品信息 */
let getPointsMall = async (ctx, next) => {
  selectPointsMallInfo(ctx, next);
};

/* 根据id获取积分兑换商品信息 */
let getPointsMallById = async (ctx, next) => {
  selectPointsMallInfoById(ctx, next);
};


/* 注意请求方式后面的空格 */
module.exports = {
  'GET /pointsMall': getPointsMall,
  'GET /pointsMall/:id': getPointsMallById
};